package protocol.registration;

import java.io.DataOutputStream;
import java.io.IOException;

public class ClientRegistrationResponse {

	private String m_ipServer;
	private int m_port;
	private int m_ID;
	
	public ClientRegistrationResponse(String ipServer,int port, int ID)
	{
		m_ipServer = ipServer;
		m_port = port;
		m_ID = ID;
	}
	
	
	
	//INPUT : ID IPServer port
	public DataOutputStream write(DataOutputStream dos) throws IOException 
	{
		dos.writeInt(m_ID);
		dos.writeUTF(m_ipServer);
		dos.writeInt(m_port);
		
		return dos;
	}
}
